#include<stdio.h>
int main()
{
	int i, j = 0;
	float a[3][5] = { {56,78,89,62},{76,99,66,58},{45,99,78,66} };
	for (i = 0; i < 3; i++)
	{
		for (j = 0; j < 3; j++)
		{
			a[i][4] += a[i][j];
		}
		a[i][4] = a[i][4] / 4;
	}
	for (i = 0; i < 3; i++)
	{
		for (j = 0; j < 5; j++)
		{
			printf("%.2f", a[i][j]);
			printf("\t");
		}
		printf("\n");
	}
	return 0;
}